import Vue from 'vue'
import VueRouter from 'vue-router'
// import Home from '../views/Home.vue'
//路由懒加载
const Upload =() =>import ('../views/Upload.vue')
const Home =() =>import ('../views/Home.vue') 
const Zongcai =()=>import ('../views/Zongcai.vue')
const Task =()=>import ('../views/Task.vue')
const Search =()=>import ('../views/Search.vue')
const Help =()=>import ('../views/Help.vue')
const Look =()=>import ('../views/Wholelook.vue')

Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    redirect:'/home'
  },
 
  {
    path:'/upload',
    name:'上传存证文件',
    component: Upload
  },
  {
    path:'/search',
    name:'查询',
    component:Search
  },
  {
    path:'/home',
    name:'首页',
    component:Home
  },
  {
    path:'/zongcai',
    name:'仲裁',
    component:Zongcai
  },
  {
    path:'/task',
    name:'任务发布',
    component:Task
  },
  {
    path:'/help',
    name:'帮助',
    component:Help
  },
  {
    path:'/look',
    name:'总览',
    component:Look
  },
]

const router = new VueRouter({
  routes,
  mode: 'history'
})

export default router
